package org.yanfengying.user.mapper;

import org.yanfengying.dto.LoginDto;
import org.yanfengying.user.domain.Logininfo;
import org.yanfengying.utils.mapper.BastMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yanfengying
 * @since 2022-11-14
 */
public interface LogininfoMapper extends BastMapper<Logininfo> {

    Logininfo getPhone(String mobile);
    //根据用户名查询相关信息->门户网
    Logininfo getUserByUsername(String username);
    //登录判断
    Logininfo getLogininfoByUsername(LoginDto dto);


    Logininfo loadByUserId(Long userId);

    Logininfo loadByPhone(String phone);
}
